@section('title') 我的订单 @parent @stop
@section('content')
<div class="navbar theme-white">
	<div class="navbar-inner navbar-on-center">
		<div class="left"><a class="link external" href="{{ route('center.index') }}"> <i class="icon icon-back"></i></a></div>
		<div class="center sliding i18n">订单列表</div>
		<div class="right"></div>
	</div>
</div>
<div class="pages navbar-through toolbar-through">
	<div class="page no-swipeback page-on-center pb60 white" data-page="order-result">
		<div class="page-content">
        @foreach($data AS $order_id => $rows)
         <div class="card facebook-card order-card">
            <div class="card-header">
              <div class="facebook-name"><a href="{{ route('order.detail', $order_id) }}">订单号：{{ $rows['order_no'] }} <span class="green">{{ $rows['order_status'] }}</span></a></div>
              <div class="facebook-date">下单时间：{{ $rows['created_at'] }}</div>
            </div>
            <div class="card-content">
              <div class="list-block media-list">
                <ul>
                  <li class="item-content">
                    <div class="item-media"><a href="{{ route('store.item', $rows['product_id']) }}" class="external" style="display:block;">{{ HTML::image($rows['product_img'], '产品图', array('width'=>50, 'height'=>50)) }}</a></div>
                    <div class="item-inner">
                      <div class="item-title-row">
                        <div class="item-title"><a href="{{ route('store.item', $rows['product_id']) }}" class="external" style="display:block;">{{ $rows['product_name'] }}</a></div>
                      </div>
                      <div class="item-subtitle"><a href="{{ route('store.item', $rows['product_id']) }}" class="external" style="display:block;"><span class="price hl">&yen; {{ $rows['product_price'] }}</span><span class="qty">&times; {{ $rows['product_qty'] }}</span></a></div>
                    </div>
                  </li>
                </ul>
              </div>
            </div>
            <div class="card-footer"><a href="{{ route('order.detail', $order_id) }}" style="text-align:left;">总价：<strong class="hl">{{ $rows['total_price'] }}</strong></a><a href="{{ route('order.detail', $order_id) }}" style="text-align:right;">&raquo; 详情</a></div>
         </div>
         @endforeach
		</div>
	</div>
</div> 
@include('widgets.toolbar', array('active'=>'center'))
@stop